import React from 'react';
import Layout from "./index";
import { Route} from "react-router-dom";


const Basic = (props) => {
    return (
        <Layout>
            {props.routes.map((item, index) => (
                <Route key={index} path={item.path} component={item.component} />
            ))}
        </Layout>);
};

export default Basic;